<template>
  <div class="box">
    <h2>wode</h2>
    <div v-for="item in list">
      <img :src="dalImg(item.coverImage)" alt="" />
      <p>1</p>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue'
import { loadProductsAPI, loadProductCategoriesAPI } from '../services/products'
import { dalImg } from '../utils/tools'
const list = ref([])
loadProductsAPI().then((res) => {
  console.log(res.data)
  list.value = res.data
})
</script>
<style scoped></style>
